﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.Domain
{
    public class MemberInfo
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public long MemberId { get; set; }
        /// <summary>
        /// 会员名称
        /// </summary>
        [Required]
        [StringLength(50)]
        public string MemberName { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string Sex { get; set; } = "不详";
        /// <summary>
        /// 电话
        /// </summary>
        public string Tel { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string IdCard { get; set; }
        /// <summary>
        /// 登录名称
        /// </summary>
        public string LoginName { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        public string LoginPwd { get; set; }
        /// <summary>
        /// 错误次数
        /// </summary>
        public int LoginErrNum { get; set; } = 0;
        /// <summary>
        /// 积分点数
        /// </summary>
        public int Points { get; set; } = 0;
        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDelete { get; set; } = 0;
        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; } = 1;
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}
